package com.example.navigationdemo.part2

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.findNavController
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.setupWithNavController
import com.example.navigationdemo.R
import kotlinx.android.synthetic.main.activity_bottomview.*

class BottomViewActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_bottomview)
        bottom_navigation_view.itemIconTintList = null
        var navHostFragment =
            supportFragmentManager.findFragmentById(R.id.fragment_container_view) as NavHostFragment

        bottom_navigation_view.setupWithNavController(navHostFragment.navController)
    }
}